
  var hour = document.querySelector(".hour");
  var minute = document.querySelector(".minute");
  var second = document.querySelector(".second");
  var inputTime = +new Date("2020-11-11 08:30:00");
 
  let hours = document.querySelector("#hour")
  let minutes = document.querySelector("#minute")
  let seconds = document.querySelector("#second")
  
  countDown(); 
  setInterval(countDown, 1000);
    
  function countDown() {
    var nowTime = +new Date(); 
    var times = (inputTime - nowTime) / 1000; 
   
    var h = parseInt(times / 60 / 60 % 24);
    h = h < 10 ? '0' + h : h;
    hours.innerHTML = h;
    var m = parseInt(times / 60 % 60);
    m = m < 10 ? "0" + m : m;
    minutes.innerHTML = m;
    var s = parseInt(times % 60);
    s = s < 10 ? "0" + s : s;
    seconds.innerHTML = s;
  }

$("#nav2").mouseover(function(){
    
    $("#nav4").css("display","block")
})
$("#nav4").mouseover(function(){
    
    $("#nav4").css("display","block")
})
$("#nav4").mouseout(function(){
    $(this).css("display","none")
})
$("#nav2").mouseout(function(){
    $("#nav4").css("display","none")
})








window.addEventListener("scroll",function(){
    
    let st = document.documentElement.scrollTop ||  document.body.scrollTop;
    console.log(st);
    if(st>500){
        $("#nav5").css("display","block")
    }else{
        $("#nav5").css("display","none")
    }
    
})





